{% extends "layout.html" %}
{% block page_title %}Login{% endblock %}
{% block content %}
<form method="POST" action="{% url django.contrib.auth.views.login %}">
    {% csrf_token %}
    <ul>{{ form.as_ul }}</ul>
    <input type="submit" value="Login" />
    <input type="hidden" value="{{next}}" />
</form>
{% endblock %}

